//app.js
var comment = require("../../utils/utils.js");
var app = getApp();
var that;

Page({
	data: {
		userInfo: ''
	},
	onLoad: function () {
		that = this;
		that.setData({
			userInfo: app.globalData.userInfo
		});
	},
	logout: function () {
		// 确认退出登录
		wx.showModal({
			title: '确定退出登录',
			success: function (res) {
				if (res.confirm) {
					// 退出操作
          app.globalData.userInfo = null
          app.globalData.openId = null
				}
			}
		});
	}
}) 